package com.huaxin.hxmodulestatisticalanalysis.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 功率因数趋势数据传输对象
 */
public class PowerFactorTrendVO {
    @Schema(description = "时间点")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timePoint;        // 时间点
    @Schema(description = "平均功率因数")
    private BigDecimal avgPowerFactor;      // 平均功率因数

    // -------------------------------
    // Getter 和 Setter
    // -------------------------------

    public LocalDateTime getTimePoint() {
        return timePoint;
    }

    public void setTimePoint(LocalDateTime timePoint) {
        this.timePoint = timePoint;
    }

    public BigDecimal getAvgPowerFactor() {
        return avgPowerFactor;
    }

    public void setAvgPowerFactor(BigDecimal avgPowerFactor) {
        this.avgPowerFactor = avgPowerFactor;
    }
}